package com.cxy.dao;



import java.util.List;

import org.springframework.stereotype.Repository;

import com.cxy.pojo.Issues;
@Repository
public class IssuesDao  extends BaseDao<Issues, Integer> {
	public List findCountByPidAndType(int pid){
		String sql = "SELECT TYPE,COUNT(id) AS num FROM t_issues WHERE pid = " + pid + " GROUP BY TYPE";
		return getSession().createSQLQuery(sql).list();
	}
}
